package com.dragon.modules.yuegou.entity.marketing;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 活动奖品表实体类<br>
 * 对应的表为：mkt_activity_spu_ref<br>
 * 
 * @author pbuilder generated
 * @date 2019-08-07 13:55:36
 * @company sgy
 * @version 2.0
 */
@TableName("mkt_activity_spu_ref")
@ApiModel(description = "活动奖品表")
public class ActivitySpuRefEntity {

    /**  */
	protected String id;

    /** 商圈id */
	@ApiModelProperty("商圈id")
	protected String busdId;

    /** 奖品标题 */
	@ApiModelProperty("奖品标题")
	protected String title;

    /** 商品id */
	@ApiModelProperty("商品id")
	protected String skuId;

    /** 活动id */
	@ApiModelProperty("活动id")
	protected String activityId;

    /** 商品名称 */
	@ApiModelProperty("商品名称")
	protected String spuTitle;

    /** 奖品数量 */
	@ApiModelProperty("奖品数量")
	protected Integer amount;

    /** 中奖概率 */
	@ApiModelProperty("中奖概率")
	protected BigDecimal rate;

	/**
	 * 构造一个空活动奖品表实体对象
	 */
	public ActivitySpuRefEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个活动奖品表实体对象
	 * 
	 * @param other 其它对象
	 */
	public ActivitySpuRefEntity(ActivitySpuRefEntity other){
		super();
     	this.id = other.id;
     	this.busdId = other.busdId;
     	this.title = other.title;
     	this.skuId = other.skuId;
     	this.activityId = other.activityId;
     	this.spuTitle = other.spuTitle;
     	this.amount = other.amount;
     	this.rate = other.rate;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取商圈id
	 * 
	 * @return busdId 商圈id
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取奖品标题
	 * 
	 * @return title 奖品标题
	 */
	public String getTitle() {
		return title;
	}
  	
	/**
	 * 设置奖品标题
	 * 
	 * @param title 奖品标题
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * 获取商品id
	 * 
	 * @return skuId 商品id
	 */
	public String getSkuId() {
		return skuId;
	}
  	
	/**
	 * 设置商品id
	 * 
	 * @param skuId 商品id
	 */
	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	/**
	 * 获取活动id
	 * 
	 * @return activityId 活动id
	 */
	public String getActivityId() {
		return activityId;
	}
  	
	/**
	 * 设置活动id
	 * 
	 * @param activityId 活动id
	 */
	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	/**
	 * 获取商品名称
	 * 
	 * @return spuTitle 商品名称
	 */
	public String getSpuTitle() {
		return spuTitle;
	}
  	
	/**
	 * 设置商品名称
	 * 
	 * @param spuTitle 商品名称
	 */
	public void setSpuTitle(String spuTitle) {
		this.spuTitle = spuTitle;
	}

	/**
	 * 获取奖品数量
	 * 
	 * @return amount 奖品数量
	 */
	public Integer getAmount() {
		return amount;
	}
  	
	/**
	 * 设置奖品数量
	 * 
	 * @param amount 奖品数量
	 */
	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	/**
	 * 获取中奖概率
	 * 
	 * @return rate 中奖概率
	 */
	public BigDecimal getRate() {
		return rate;
	}
  	
	/**
	 * 设置中奖概率
	 * 
	 * @param rate 中奖概率
	 */
	public void setRate(BigDecimal rate) {
		this.rate = rate;
	}

    public String toString() {
		return new StringBuilder().append("ActivitySpuRefEntity{").
			append("id=").append(id).
			append(",busdId=").append(busdId).
			append(",title=").append(title).
			append(",skuId=").append(skuId).
			append(",activityId=").append(activityId).
			append(",spuTitle=").append(spuTitle).
			append(",amount=").append(amount).
			append(",rate=").append(rate).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public ActivitySpuRefEntity copy() {
		return new ActivitySpuRefEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 商圈id */
	public static final String COL_BUSD_ID = "busd_id";

    /** 奖品标题 */
	public static final String COL_TITLE = "title";

    /** 商品id */
	public static final String COL_SKU_ID = "sku_id";

    /** 活动id */
	public static final String COL_ACTIVITY_ID = "activity_id";

    /** 商品名称 */
	public static final String COL_SPU_TITLE = "spu_title";

    /** 奖品数量 */
	public static final String COL_AMOUNT = "amount";

    /** 中奖概率 */
	public static final String COL_RATE = "rate";
}
